<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Student extends Model
{
    protected $fillable = ['s_code', 'c_code', 'name'];

    public function class()
    {
        return $this->hasOne(Classes::class, 'c_code', 'c_code');
    }
}
